package com.dz.risk.pojo.model;

import com.dz.risk.pojo.domain.ReportFormsEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 报表扩展模型
 *
 * @author Doke
 * @date 2021/8/19 14:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("报表扩展模型")
public class ReportFormsExtModel {

    @ApiModelProperty(value = "报表ID")
    private String reportFormsId;

    @ApiModelProperty(value = "报表编号")
    private String reportFormsSerialNumber;

    @ApiModelProperty(value = "报表名")
    private String reportFormsName;

    @ApiModelProperty(value = "数据版本(yyyy-MM-dd)")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String dataVersion;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间(yyyy-MM-dd)")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间(yyyy-MM-dd)")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

}
